import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-10-22
 * Time: 8:41
 */
public class YHTriangle {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int[][] arr = new int[n][];
        for(int i = 0; i < n; i++) {
            arr[i] = new int[i+1];
            arr[i][0] = 1;
            arr[i][i] = 1;
            for(int j = 1; j < i; j++) {
                arr[i][j] = arr[i-1][j-1] + arr[i-1][j];
            }
        }
        System.out.println(Arrays.deepToString(arr));
        MyCircularQueue myCircularQueue = new MyCircularQueue(n);
    
    }
}
